package com.yssoft.mapper.sales;

import java.util.List;
import java.util.Map;

import com.yssoft.entity.sales.TCustomer;

import tk.mybatis.mapper.common.Mapper;

public interface TCustomerMapper extends Mapper<TCustomer> {
	
	/**
	 * 根据id 查询某客户
	 * @param customerId
	 * @return
	 */
	TCustomer queryCustomerById(Integer customerId);
	
	/**
	 * 客户详情查看
	 * @param param
	 * @return
	 */
	List<Map<String, Object>> queryCustomer(Map<String, Object> param);
	
	/**
	 * 删除客户
	 * @param customerId
	 */
	void deleteCustomer(Integer customerId);
	
	/**
	 * 客户分页列表
	 * @param param
	 * @return
	 */
	List<Map<String, Object>> queryCustomerList(Map<String, Object> param);

	/**
	 * 保存客户信息
	 * @param tCustomer
	 */
	void insertCustomer(TCustomer tCustomer);
}
